package com.hh.example.SpringListener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 16-3-23.
 */
@Component
public class MyLisener implements ApplicationListener<PeopleEvent> {
    @Override
    public void onApplicationEvent(PeopleEvent myListenEvent) {
        System.out.println("===========这是特定监听器");
        System.out.println("----:"+myListenEvent.toString());
        System.out.println("----:"+myListenEvent.getSource().toString());
    }
}
